<div class="left">
	<usr:itsMine target="${userInstance.id}">
		<g:link class="edit" url="[controller:'user', action:'editProfile', id:userInstance?.id]">${message(code: 'default.button.edit.profile')}</g:link>
		<g:link class="edit" url="[controller:'user', action:'editFile', id:userInstance?.id]">${message(code: 'default.button.edit.file')}</g:link>
		<g:link class="edit" url="[controller:'user', action:'editPassword', id:userInstance?.id]">${message(code: 'default.button.edit.password')}</g:link>
						
		<usr:isAdmin>
			<g:if test="${userInstance.disabled}">
	    		<g:form controller="user" action="disable">
	    			<g:hiddenField name="id" value="${userInstance?.id}" />
	    			<g:submitButton class="disable" name="disable" value="${message(code:'default.button.disable')}" />
	        	</g:form>
			</g:if>
	       	<g:else>
	        	<g:form controller="user" action="enable">
	    			<g:hiddenField name="id" value="${userInstance?.id}" />
					<g:submitButton class="enable " name="enable" value="${message(code:'default.button.enable')}" />
				</g:form>
			</g:else>
		</usr:isAdmin>
	</usr:itsMine>
				
	<g:if test="${userInstance.favoriteComics}">			
		<g:link class="list" url="[controller:'user', action:'showFavorites', id:userInstance?.id]"><g:message code="default.button.show.favorite.comics"/></g:link>
	</g:if>
	
	<g:link class="list" url="[controller:'user', action:'contributions', id:userInstance?.id]"><g:message code="default.button.contributions"/></g:link>
	
	<g:if test="${userInstance.commentable}">				
		<g:remoteLink controller="user" action="comments" params="['commentToId':userInstance.id, 'commentToName':'user']" update="commentWrapper" onComplete="showComment(); setEnviroment();"><g:message code="default.button.comment.list"/>:(${userInstance.userComments?.size()})</g:remoteLink>
	</g:if>
</div>	
				
<div class="right">
	<usr:itsMine>
		<g:form>
		 	<g:hiddenField name="id" value="${userInstance?.id}" />
			<g:actionSubmit class="delete" action="Delete" value="${message(code:'default.button.delete')}" onclick="return confirm('${message(code:'default.button.delete.confirm.message')}');" />
		</g:form>
	</usr:itsMine>
	<g:form>
	<g:actionSubmit class="back" action="List" value="${message(code:'default.button.back')}" />
	</g:form>
</div>